import request from "../utils/request";

//分页条件查询
export const queryLevelAll = (page,pageSize,name,status) => {return request.get(`/level?page=${page}&pageSize=${pageSize}&name=${name}&status=${status}`)}

//添加
export const saveLevel = (data) => {return request.post(`/level`,data)}

//回显查询
export const queryLevelById = (id) => {return request.get(`/level/${id}`)}

//修改
export const updateLevel = (data) => {return request.put(`/level`,data)}

//删除
export const deleteLevel = (id) => {return request.delete(`/level/${id}`)}